package com.review.reviewsb.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;
import javax.servlet.annotation.WebServlet;

/**
 * @program: reviewSb
 * @description: 请求监听器
 * @author: YaoZhiLi
 * @create: 2021-07-04 17:14
 */
@WebListener
public class CustomRequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("请求创建");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("请求销毁");
    }
}